package com.healthcloud.service.impl;

import com.healthcloud.dao.losewisdom.LoseWisdomSingleChoiceAnswerDetailDao;
import com.healthcloud.dto.req.losewisdom.LoseWisdomSingleChoiceAnswerDetailDto;
import com.healthcloud.dto.vo.LoseWisdomSingleChoiceVo;
import com.healthcloud.entity.losewisdom.LoseWisdomSingleChoiceAnswerDetailEntity;
import com.healthcloud.service.losewisdom.LoseWisdomSingleChoiceAnswerDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Deprecated
@Service("loseWisdomSingleChoiceAnswerDetailService")
@Transactional(rollbackFor = Exception.class)
public class LoseWisdomSingleChoiceAnswerDetailServiceImpl implements LoseWisdomSingleChoiceAnswerDetailService {

    @Autowired
	private LoseWisdomSingleChoiceAnswerDetailDao loseWisdomSingleChoiceAnswerDetailDao;

    /**
     * 获取答案明细
     * @param id
     * @return
     */
    @Override
    public List<LoseWisdomSingleChoiceAnswerDetailDto> getDetailsByAnswerId(Integer id) {
        return loseWisdomSingleChoiceAnswerDetailDao.getDetailsByAnswerId(id);
    }

    /**
     * 批量新增问卷答案明细
     * @param list
     */
    @Override
    public void batchSaveAnswer(List<LoseWisdomSingleChoiceAnswerDetailEntity> list) {
        loseWisdomSingleChoiceAnswerDetailDao.batchSaveAnswer(list);
    }

    /**
     * 批量修改问卷答案明细
     * @param list
     */
    @Override
    public void batchUpdateAnswer(List<LoseWisdomSingleChoiceAnswerDetailEntity> list) {
        loseWisdomSingleChoiceAnswerDetailDao.batchUpdateAnswer(list);
    }

    /**
     * 根据答案id删除答案明细
     * @param answerId
     */
    @Override
    public void deleteByAnswerId(Integer answerId) {
        loseWisdomSingleChoiceAnswerDetailDao.deleteByAnswerId(answerId);
    }

	
}
